package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class HistoryAvatarRequest extends BaseTokenRequest {

    public static final String PATH =  BaseRequest.PATH + "api/Get_His_Avatar";

    private String babyId;
    private int size;

    public String getBabyId() {
        return babyId;
    }

    public void setBabyId(String babyId) {
        this.babyId = babyId;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        HistoryAvatarRequestBody historyAvatarRequestBody = new HistoryAvatarRequestBody();
        historyAvatarRequestBody.setBabyId(getBabyId());
        historyAvatarRequestBody.setSize(getSize());
        historyAvatarRequestBody.setPhone(getPhone());
        historyAvatarRequestBody.setToken(getToken());
        return historyAvatarRequestBody;
    }

    private class HistoryAvatarRequestBody extends BaseTokenRequestBody {

        @SerializedName("BabyID")
        private String babyId;

        @SerializedName("Size")
        private int size;

        public String getBabyId() {
            return babyId;
        }

        public void setBabyId(String babyId) {
            this.babyId = babyId;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public HistoryAvatarRequestBody() {
            setSv(BaseRequestConfig.SV_GET_HISTORY_AVATAR);
        }
    }
}
